﻿# FindToupCamSDK.cmake

find_path(ToupCamSDK_INCLUDE_DIRS
            NAMES 
                toupcam.h 
            HINTS 
                "${CMAKE_CURRENT_SOURCE_DIR}/CameraToupCam/toupcamsdk/inc/"
                "${CMAKE_CURRENT_SOURCE_DIR}/toupcamsdk/inc/"
            )

find_library(ToupCamSDK_LIBRARIES
            NAMES
                toupcam.lib
            PATHS
                "${CMAKE_CURRENT_SOURCE_DIR}/CameraToupCam/toupcamsdk/win/x64"
                "${CMAKE_CURRENT_SOURCE_DIR}/toupcamsdk/win/x64"
            )


include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ToupCamSDK
            FOUND_VAR
                ToupCamSDK_FOUND
            REQUIRED_VARS
                ToupCamSDK_INCLUDE_DIRS
                ToupCamSDK_LIBRARIES
                )


mark_as_advanced(ToupCamSDK_LIBRARIES) # show entry in cmake-gui

